package com.hw.springcloud.service;

import com.hw.springcloud.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

/**
 * @Classname: OrderAccountService
 * @Description: 描述
 * @Date: 2021/12/22
 * @Author: HuWei
 */
@FeignClient("cloudalibaba-seata-account-serve")
public interface OrderAccountService {

    @GetMapping("/account/updateAccount/{userId}/{used}")
    CommonResult<Boolean> updateAccount(@PathVariable("userId")Long userId, @PathVariable("used")BigDecimal used);
}
